import request from '@/utils/request'

/**
 * [根据角色Id获取当前关联菜单]
 * @param  {[type]} roleId [角色id]
 */
export function getRoleMenuByRoleId(roleId) {
  return request({
    url: '/roleMenu/getRoleMenuByRoleId',
    method: 'get',
    params: { roleId: roleId }
  })
}

export function saveRoleMenus(map) {
  return request({
    url: '/roleMenu/saveMenus',
    method: 'post',
    data: map
  })
}
